//
// Created by tender on 17-9-14.
//

#include <iostream>
#include "MenuBackItemComp.h"
#include "CONST.h"

int MenuBackItemComp::checkType(int id) {
    return ISBACK;
}

void MenuBackItemComp::print(long id) {

    std::cout<<id<<". "<<text<<std::endl;
}

std::vector<std::shared_ptr<IMenuComponent>> MenuBackItemComp::getchilden() {
    return std::vector<std::shared_ptr<IMenuComponent>>();
}

void MenuBackItemComp::show() {

}

void MenuBackItemComp::add(IMenuComponent *items) {

}

void MenuBackItemComp::setText(const std::string &text) {
    this->text=text;

}

void MenuBackItemComp::setDesc(const std::string &desc) {

}
